home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 1.iso / dist / fw_cups.idb / usr / freeware / etc / cups / cupsd.conf.z / cupsd.conf
Text File  |  2002-04-08  |  19KB  |  721 lines

  1. #
  2. # "$Id: cupsd.conf.in,v 1.3 2002/02/12 18:47:11 mike Exp $"
  3. #
  4. #   Sample configuration file for the Common UNIX Printing System (CUPS)
  5. #   scheduler.
  6. #
  7. #   Copyright 1997-2002 by Easy Software Products, all rights reserved.
  8. #
  9. #   These coded instructions, statements, and computer programs are the
  10. #   property of Easy Software Products and are protected by Federal
  11. #   copyright law.  Distribution and use rights are outlined in the file
  12. #   "LICENSE.txt" which should have been included with this file.  If this
  13. #   file is missing or damaged please contact Easy Software Products
  14. #   at:
  15. #
  16. #       Attn: CUPS Licensing Information
  17. #       Easy Software Products
  18. #       44141 Airport View Drive, Suite 204
  19. #       Hollywood, Maryland 20636-3111 USA
  20. #
  21. #       Voice: (301) 373-9603
  22. #       EMail: cups-info@cups.org
  23. #         WWW: http://www.cups.org
  24. #
  25.  
  26. ########################################################################
  27. #                                                                      #
  28. # This is the CUPS configuration file.  If you are familiar with       #
  29. # Apache or any of the other popular web servers, we've followed the   #
  30. # same format.  Any configuration variable used here has the same      #
  31. # semantics as the corresponding variable in Apache.  If we need       #
  32. # different functionality then a different name is used to avoid       #
  33. # confusion...                                                         #
  34. #                                                                      #
  35. ########################################################################
  36.  
  37.  
  38. ########
  39. ######## Server Identity
  40. ########
  41.  
  42. #
  43. # ServerName: the hostname of your server, as advertised to the world.
  44. # By default CUPS will use the hostname of the system.
  45. #
  46. # To set the default server used by clients, see the client.conf file.
  47. #
  48.  
  49. #ServerName myhost.domain.com
  50.  
  51. #
  52. # ServerAdmin: the email address to send all complaints/problems to.
  53. # By default CUPS will use "root@hostname".
  54. #
  55.  
  56. #ServerAdmin root@your.domain.com
  57.  
  58.  
  59. ########
  60. ######## Server Options
  61. ########
  62.  
  63. #
  64. # AccessLog: the access log file; if this does not start with a leading /
  65. # then it is assumed to be relative to ServerRoot.  By default set to
  66. # "/var/cups/access_log"
  67. #
  68. # You can also use the special name "syslog" to send the output to the
  69. # syslog file or daemon.
  70. #
  71.  
  72. #AccessLog /var/cups/access_log
  73.  
  74. #
  75. # Classification: the classification level of the server.  If set, this
  76. # classification is displayed on all pages, and raw printing is disabled.
  77. # The default is the empty string.
  78. #
  79.  
  80. #Classification classified
  81. #Classification confidential
  82. #Classification secret
  83. #Classification topsecret
  84. #Classification unclassified
  85.  
  86. #
  87. # ClassifyOverride: whether to allow users to override the classification
  88. # on printouts. If enabled, users can limit banner pages to before or
  89. # after the job, and can change the classification of a job, but cannot
  90. # completely eliminate the classification or banners.
  91. #
  92. # The default is off.
  93. #
  94.  
  95. #ClassifyOverride off
  96.  
  97. #
  98. # DataDir: the root directory for the CUPS data files.
  99. # By default "/usr/freeware/share/cups".
  100. #
  101.  
  102. #DataDir /usr/freeware/share/cups
  103.  
  104. #
  105. # DefaultCharset: the default character set to use. If not specified,
  106. # defaults to "utf-8".  Note that this can also be overridden in
  107. # HTML documents...
  108. #
  109.  
  110. #DefaultCharset utf-8
  111.  
  112. #
  113. # DefaultLanguage: the default language if not specified by the browser.
  114. # If not specified, the current locale is used.
  115. #
  116.  
  117. #DefaultLanguage en
  118.  
  119. #
  120. # DocumentRoot: the root directory for HTTP documents that are served.
  121. # By default "/usr/freeware/share/doc/cups".
  122. #
  123.  
  124. #DocumentRoot /usr/freeware/share/doc/cups
  125.  
  126. #
  127. # ErrorLog: the error log file; if this does not start with a leading /
  128. # then it is assumed to be relative to ServerRoot.  By default set to
  129. # "/var/cups/error_log"
  130. #
  131. # You can also use the special name "syslog" to send the output to the
  132. # syslog file or daemon.
  133. #
  134.  
  135. #ErrorLog /var/cups/error_log
  136.  
  137. #
  138. # FontPath: the path to locate all font files (currently only for pstoraster)
  139. # By default "/usr/freeware/share/cups/fonts".
  140. #
  141.  
  142. #FontPath /usr/freeware/share/cups/fonts
  143.  
  144. #
  145. # LogLevel: controls the number of messages logged to the ErrorLog
  146. # file and can be one of the following:
  147. #
  148. #     debug2    Log everything.
  149. #     debug    Log almost everything.
  150. #     info      Log all requests and state changes.
  151. #     warn      Log errors and warnings.
  152. #     error     Log only errors.
  153. #     none      Log nothing.
  154. #
  155.  
  156. LogLevel info
  157.  
  158. #
  159. # MaxLogSize: controls the maximum size of each log file before they are
  160. # rotated.  Defaults to 1048576 (1MB).  Set to 0 to disable log rotating.
  161. #
  162.  
  163. #MaxLogSize 0
  164.  
  165. #
  166. # PageLog: the page log file; if this does not start with a leading /
  167. # then it is assumed to be relative to ServerRoot.  By default set to
  168. # "/var/cups/page_log"
  169. #
  170. # You can also use the special name "syslog" to send the output to the
  171. # syslog file or daemon.
  172. #
  173.  
  174. #PageLog /var/cups/page_log
  175.  
  176. #
  177. # PreserveJobHistory: whether or not to preserve the job history after a
  178. # job is completed, cancelled, or stopped.  Default is Yes.
  179. #
  180.  
  181. #PreserveJobHistory Yes
  182.  
  183. #
  184. # PreserveJobFiles: whether or not to preserve the job files after a
  185. # job is completed, cancelled, or stopped.  Default is No.
  186. #
  187.  
  188. #PreserveJobFiles No
  189.  
  190. #
  191. # AutoPurgeJobs: automatically purge jobs when not needed for quotas.
  192. # Default is No.
  193. #
  194.  
  195. #AutoPurgeJobs No
  196.  
  197. #
  198. # MaxJobs: maximum number of jobs to keep in memory (active and completed.)
  199. # Default is 500; the value 0 is used for no limit.
  200. #
  201.  
  202. #MaxJobs 500
  203.  
  204. #
  205. # Printcap: the name of the printcap file.  Default is /etc/printcap.
  206. # Leave blank to disable printcap file generation.
  207. #
  208.  
  209. #Printcap /etc/printcap
  210.  
  211. #
  212. # PrintcapFormat: the format of the printcap file, currently either
  213. # BSD or Solaris.  The default is "BSD".
  214. #
  215.  
  216. #PrintcapFormat BSD
  217. #PrintcapFormat Solaris
  218.  
  219. #
  220. # PrintcapGUI: the name of the GUI options panel program to associate
  221. # with print queues under IRIX.  The default is "/usr/bin/glpoptions"
  222. # from ESP Print Pro.
  223. #
  224. # This option is only used under IRIX; the options panel program
  225. # must accept the "-d printer" and "-o options" options and write
  226. # the selected printer options back to stdout on completion.
  227. #
  228.  
  229. #PrintcapGUI /usr/bin/glpoptions
  230.  
  231. #
  232. # RequestRoot: the directory where request files are stored.
  233. # By default "/var/spool/cups".
  234. #
  235.  
  236. #RequestRoot /var/spool/cups
  237.  
  238. #
  239. # RemoteRoot: the name of the user assigned to unauthenticated accesses
  240. # from remote systems.  By default "remroot".
  241. #
  242.  
  243. #RemoteRoot remroot
  244.  
  245. #
  246. # ServerBin: the root directory for the scheduler executables.
  247. # By default "/usr/freeware/lib/cups".
  248. #
  249.  
  250. #ServerBin /usr/freeware/lib/cups
  251.  
  252. #
  253. # ServerRoot: the root directory for the scheduler.
  254. # By default "/usr/freeware/etc/cups".
  255. #
  256.  
  257. #ServerRoot /usr/freeware/etc/cups
  258.  
  259.  
  260. ########
  261. ######## Encryption Support
  262. ########
  263.  
  264. #
  265. # ServerCertificate: the file to read containing the server's certificate.
  266. # Defaults to "/usr/freeware/etc/cups/ssl/server.crt".
  267. #
  268.  
  269. #ServerCertificate /usr/freeware/etc/cups/ssl/server.crt
  270.  
  271. #
  272. # ServerKey: the file to read containing the server's key.
  273. # Defaults to "/usr/freeware/etc/cups/ssl/server.key".
  274. #
  275.  
  276. #ServerKey /usr/freeware/etc/cups/ssl/server.key
  277.  
  278.  
  279. ########
  280. ######## Filter Options
  281. ########
  282.  
  283. #
  284. # User/Group: the user and group the server runs under.  Normally this
  285. # must be lp and sys, however you can configure things for another
  286. # user or group as needed.
  287. #
  288. # Note: the server must be run initially as root to support the
  289. # default IPP port of 631.  It changes users whenever an external
  290. # program is run, or if the RunAsUser directive is specified...
  291. #
  292.  
  293. #User lp
  294. #Group sys
  295.  
  296. #
  297. # RIPCache: the amount of memory that each RIP should use to cache
  298. # bitmaps.  The value can be any real number followed by "k" for
  299. # kilobytes, "m" for megabytes, "g" for gigabytes, or "t" for tiles
  300. # (1 tile = 256x256 pixels.)  Defaults to "8m" (8 megabytes).
  301. #
  302.  
  303. #RIPCache 8m
  304.  
  305. #
  306. # TempDir: the directory to put temporary files in.  This directory must be
  307. # writable by the user defined above!  Defaults to "/var/spool/cups/tmp" or
  308. # the value of the TMPDIR environment variable.
  309. #
  310.  
  311. #TempDir /var/spool/cups/tmp
  312.  
  313. #
  314. # FilterLimit: sets the maximum cost of all job filters that can be run
  315. # at the same time.  A limit of 0 means no limit.  A typical job may need
  316. # a filter limit of at least 200; limits less than the minimum required
  317. # by a job force a single job to be printed at any time.
  318. #
  319. # The default limit is 0 (unlimited).
  320. #
  321.  
  322. #FilterLimit 0
  323.  
  324. ########
  325. ######## Network Options
  326. ########
  327.  
  328. #
  329. # Ports/addresses that we listen to.  The default port 631 is reserved
  330. # for the Internet Printing Protocol (IPP) and is what we use here.
  331. #
  332. # You can have multiple Port/Listen lines to listen to more than one
  333. # port or address, or to restrict access:
  334. #
  335. #    Port 80
  336. #    Port 631
  337. #    Listen hostname
  338. #    Listen hostname:80
  339. #    Listen hostname:631
  340. #    Listen 1.2.3.4
  341. #    Listen 1.2.3.4:631
  342. # NOTE: Unfortunately, most web browsers don't support TLS or HTTP Upgrades
  343. # for encryption.  If you want to support web-based encryption you'll
  344. # probably need to listen on port 443 (the "https" port...)
  345. #
  346.  
  347. #Port 80
  348. #Port 443
  349. Port 631
  350.  
  351. #
  352. # HostNameLookups: whether or not to do lookups on IP addresses to get a
  353. # fully-qualified hostname.  This defaults to Off for performance reasons...
  354. #
  355.  
  356. #HostNameLookups On
  357.  
  358. #
  359. # KeepAlive: whether or not to support the Keep-Alive connection
  360. # option.  Default is on.
  361. #
  362.  
  363. #KeepAlive On
  364.  
  365. #
  366. # KeepAliveTimeout: the timeout before Keep-Alive connections are
  367. # automatically closed.  Default is 60 seconds.
  368. #
  369.  
  370. #KeepAliveTimeout 60
  371.  
  372. #
  373. # MaxClients: controls the maximum number of simultaneous clients that
  374. # will be handled.  Defaults to 100.
  375. #
  376.  
  377. #MaxClients 100
  378.  
  379. #
  380. # MaxRequestSize: controls the maximum size of HTTP requests and print files.
  381. # Set to 0 to disable this feature (defaults to 0.)
  382. #
  383.  
  384. #MaxRequestSize 0
  385.  
  386. #
  387. # Timeout: the timeout before requests time out.  Default is 300 seconds.
  388. #
  389.  
  390. #Timeout 300
  391.  
  392.  
  393. ########
  394. ######## Browsing Options
  395. ########
  396.  
  397. #
  398. # Browsing: whether or not to broadcast and/or listen for CUPS printer
  399. # information on the network.  Enabled by default.
  400. #
  401.  
  402. #Browsing On
  403.  
  404. #
  405. # BrowseProtocols: which protocols to use for browsing.  Can be
  406. # any of the following separated by whitespace and/or commas:
  407. #
  408. #     all  - Use all supported protocols.
  409. #     cups - Use the CUPS browse protocol.
  410. #     slp  - Use the SLPv2 protocol.
  411. #
  412. # The default is "cups".
  413. #
  414. # NOTE: If you choose to use SLPv2, it is *strongly* recommended that
  415. #       you have at least one SLP Directory Agent (DA) on your
  416. #       network.  Otherwise, browse updates can take several seconds,
  417. #       during which the scheduler will not response to client
  418. #       requests.
  419. #
  420.  
  421. #BrowseProtocols cups
  422.  
  423. #
  424. # BrowseAddress: specifies a broadcast address to be used.  By
  425. # default browsing information is not sent!
  426. #
  427. # Note: HP-UX does not properly handle broadcast unless you have a
  428. # Class A, B, C, or D netmask (i.e. no CIDR support).
  429. #
  430. # Note: Using the "global" broadcast address (255.255.255.255) will
  431. # activate a Linux demand-dial link with the default configuration.
  432. # If you have a LAN as well as the dial-up link, use the LAN's
  433. # broadcast address.
  434. #
  435.  
  436. #BrowseAddress x.y.z.255
  437. #BrowseAddress x.y.255.255
  438. #BrowseAddress x.255.255.255
  439. #BrowseAddress 255.255.255.255
  440.  
  441. #
  442. # BrowseShortNames: whether or not to use "short" names for remote printers
  443. # when possible (e.g. "printer" instead of "printer@host".)  Enabled by
  444. # default.
  445. #
  446.  
  447. #BrowseShortNames Yes
  448.  
  449. #
  450. # BrowseAllow: specifies an address mask to allow for incoming browser
  451. # packets. The default is to allow packets from all addresses.
  452. #
  453. # BrowseDeny: specifies an address mask to deny for incoming browser
  454. # packets. The default is to deny packets from no addresses.
  455. #
  456. # Both "BrowseAllow" and "BrowseDeny" accept the following notations for
  457. # addresses:
  458. #
  459. #     All
  460. #     None
  461. #     *.domain.com
  462. #     .domain.com
  463. #     host.domain.com
  464. #     nnn.*
  465. #     nnn.nnn.*
  466. #     nnn.nnn.nnn.*
  467. #     nnn.nnn.nnn.nnn
  468. #     nnn.nnn.nnn.nnn/mm
  469. #     nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
  470. #
  471. # The hostname/domainname restrictions only work if you have turned hostname
  472. # lookups on!
  473. #
  474.  
  475. #BrowseAllow address
  476. #BrowseDeny address
  477.  
  478. #
  479. # BrowseInterval: the time between browsing updates in seconds.  Default
  480. # is 30 seconds.
  481. #
  482. # Note that browsing information is sent whenever a printer's state changes
  483. # as well, so this represents the maximum time between updates.
  484. #
  485. # Set this to 0 to disable outgoing broadcasts so your local printers are
  486. # not advertised but you can still see printers on other hosts.
  487. #
  488.  
  489. #BrowseInterval 30
  490.  
  491. #
  492. # BrowseOrder: specifies the order of BrowseAllow/BrowseDeny comparisons.
  493. #
  494.  
  495. #BrowseOrder allow,deny
  496. #BrowseOrder deny,allow
  497.  
  498. #
  499. # BrowsePoll: poll the named server(s) for printers
  500. #
  501.  
  502. #BrowsePoll address:port
  503.  
  504. #
  505. # BrowsePort: the port used for UDP broadcasts.  By default this is
  506. # the IPP port; if you change this you need to do it on all servers.
  507. # Only one BrowsePort is recognized.
  508. #
  509.  
  510. #BrowsePort 631
  511.  
  512. #
  513. # BrowseRelay: relay browser packets from one address/network to another.
  514. #
  515.  
  516. #BrowseRelay source-address destination-address
  517.  
  518. #
  519. # BrowseTimeout: the timeout for network printers - if we don't
  520. # get an update within this time the printer will be removed
  521. # from the printer list.  This number definitely should not be
  522. # less the BrowseInterval value for obvious reasons.  Defaults
  523. # to 300 seconds.
  524. #
  525.  
  526. #BrowseTimeout 300
  527.  
  528. #
  529. # ImplicitClasses: whether or not to use implicit classes.
  530. #
  531. # Printer classes can be specified explicitly in the classes.conf
  532. # file, implicitly based upon the printers available on the LAN, or
  533. # both.
  534. #
  535. # When ImplicitClasses is On, printers on the LAN with the same name
  536. # (e.g. Acme-LaserPrint-1000) will be put into a class with the same
  537. # name. This allows you to setup multiple redundant queues on a LAN
  538. # without a lot of administrative difficulties.  If a user sends a
  539. # job to Acme-LaserPrint-1000, the job will go to the first available
  540. # queue.
  541. #
  542. # Enabled by default.
  543. #
  544.  
  545. #ImplicitClasses On
  546.  
  547. #
  548. # ImplicitAnyClasses: whether or not to create "AnyPrinter" implicit
  549. # classes.
  550. #
  551. # When ImplicitAnyClasses is On and a local queue of the same name
  552. # exists, e.g. "printer", "printer@server1", "printer@server1", then
  553. # an implicit class called "Anyprinter" is created instead.
  554. #
  555. # When ImplicitAnyClasses is Off, implicit classes are not created
  556. # when there is a local queue of the same name.
  557. #
  558. # Disabled by default.
  559. #
  560.  
  561. #ImplicitAnyCLasses Off
  562.  
  563. #
  564. # HideImplicitMembers: whether or not to show the members of an
  565. # implicit class.
  566. #
  567. # When HideImplicitMembers is On, any remote printers that are
  568. # part of an implicit class are hidden from the user, who will
  569. # then only see a single queue even though many queues will be
  570. # supporting the implicit class.
  571. #
  572. # Enabled by default.
  573. #
  574.  
  575. #HideImplicitMembers On
  576.  
  577.  
  578. ########
  579. ######## Security Options
  580. ########
  581.  
  582. #
  583. # SystemGroup: the group name for "System" (printer administration)
  584. # access.  The default varies depending on the operating system, but
  585. # will be "sys", "system", or "root" (checked for in that order.)
  586. #
  587.  
  588. #SystemGroup sys
  589.  
  590. #
  591. # Access permissions for each directory served by the scheduler.
  592. # Locations are relative to DocumentRoot...
  593. #
  594. # AuthType: the authorization to use:
  595. #
  596. #    None   - Perform no authentication
  597. #    Basic  - Perform authentication using the HTTP Basic method.
  598. #    Digest - Perform authentication using the HTTP Digest method.
  599. #
  600. #    (Note: local certificate authentication can be substituted by
  601. #           the client for Basic or Digest when connecting to the
  602. #           localhost interface)
  603. #
  604. # AuthClass: the authorization class; currently only "Anonymous", "User",
  605. # "System" (valid user belonging to group SystemGroup), and "Group"
  606. # (valid user belonging to the specified group) are supported.
  607. #
  608. # AuthGroupName: the group name for "Group" authorization.
  609. #
  610. # Order: the order of Allow/Deny processing.
  611. #
  612. # Allow: allows access from the specified hostname, domain, IP address, or
  613. # network.
  614. #
  615. # Deny: denies access from the specified hostname, domain, IP address, or
  616. # network.
  617. #
  618. # Both "Allow" and "Deny" accept the following notations for addresses:
  619. #
  620. #     All
  621. #     None
  622. #     *.domain.com
  623. #     .domain.com
  624. #     host.domain.com
  625. #     nnn.*
  626. #     nnn.nnn.*
  627. #     nnn.nnn.nnn.*
  628. #     nnn.nnn.nnn.nnn
  629. #     nnn.nnn.nnn.nnn/mm
  630. #     nnn.nnn.nnn.nnn/mmm.mmm.mmm.mmm
  631. #
  632. # The host and domain address require that you enable hostname lookups
  633. # with "HostNameLookups On" above.
  634. #
  635. # Encryption: whether or not to use encryption; this depends on having
  636. # the OpenSSL library linked into the CUPS library and scheduler.
  637. #
  638. # Possible values:
  639. #
  640. #     Always       - Always use encryption (SSL)
  641. #     Never        - Never use encryption
  642. #     Required     - Use TLS encryption upgrade
  643. #     IfRequested  - Use encryption if the server requests it
  644. #
  645. # The default value is "IfRequested".
  646. #
  647.  
  648. <Location />
  649. Order Deny,Allow
  650. Deny From All
  651. Allow From 127.0.0.1
  652. </Location>
  653.  
  654. #<Location /classes>
  655. #
  656. # You may wish to limit access to printers and classes, either with Allow
  657. # and Deny lines, or by requiring a username and password.
  658. #
  659. #</Location>
  660.  
  661. #<Location /classes/name>
  662. #
  663. # You may wish to limit access to printers and classes, either with Allow
  664. # and Deny lines, or by requiring a username and password.
  665. #
  666. #</Location>
  667.  
  668. #<Location /printers>
  669. #
  670. # You may wish to limit access to printers and classes, either with Allow
  671. # and Deny lines, or by requiring a username and password.
  672. #
  673. #</Location>
  674.  
  675. #<Location /printers/name>
  676. #
  677. # You may wish to limit access to printers and classes, either with Allow
  678. # and Deny lines, or by requiring a username and password.
  679. #
  680.  
  681. ## Anonymous access (default)
  682. #AuthType None
  683.  
  684. ## Require a username and password (Basic authentication)
  685. #AuthType Basic
  686. #AuthClass User
  687.  
  688. ## Require a username and password (Digest/MD5 authentication)
  689. #AuthType Digest
  690. #AuthClass User
  691.  
  692. ## Restrict access to local domain
  693. #Order Deny,Allow
  694. #Deny From All
  695. #Allow From .mydomain.com
  696. #</Location>
  697.  
  698. <Location /admin>
  699. #
  700. # You definitely will want to limit access to the administration functions.
  701. # The default configuration requires a local connection from a user who
  702. # is a member of the system group to do any admin tasks.  You can change
  703. # the group name using the SystemGroup directive.
  704. #
  705.  
  706. AuthType Basic
  707. AuthClass System
  708.  
  709. ## Restrict access to local domain
  710. Order Deny,Allow
  711. Deny From All
  712. Allow From 127.0.0.1
  713.  
  714. #Encryption Required
  715. </Location>
  716.  
  717. #
  718. # End of "$Id: cupsd.conf.in,v 1.3 2002/02/12 18:47:11 mike Exp $".
  719. #
  720.